import request from '@/utils/request.js';

export function getTab(data) {
    return request.get('/homepage1', data);
}
export function getGoodInfo(data) {
    return request.get('/Goods/detail', data);
}
export function getGoodList(data) {
    return request.get('/app/index.php', data);
}
export function getAppDataInfo(data) {
    return request.get('/app/index.php', data);
}
export function postappdatainfo(data) {
    return request.post('/app/index.php', data);
}
export function getgoodscomment(data) {
    return request.get('/Comment/getgoodscomment', data);
}
export function getStoredetail(data) {
    return request.get('/Store/detail', data);
}
export function createbuynowinfo(data) {
    return request.post('/app/index.php?i=3&do=goods.buynowinfo', data);
}
export function getbuynowinfo(data) {
    return request.post('/app/index.php?i=3&do=goodsbuynowinfo.getbuynowinfo', data);
}
export function getPaymethod(data) {
    return request.get('/app/index.php?i=3&do=Paymethod.list', data);
}
export function createorder(data) {
    return request.post('/app/index.php?i=3&do=order.create', data);
}
export function setwxpay(data) {
    return request.get('/app/index.php?i=3&do=pay', data);
}
export function getorderliststatus(data) {
    return request.get('/app/index.php?i=3&do=orderstatus.listname&ptype=1', data);
}
export function getorderlist(data) {
    return request.post('/app/index.php?i=3&do=order.myorder', data);
}

